package com.yilin.tms.data.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.tms.core.application.PageData;
import com.yilin.tms.core.entity.capital.TradeRecord;
import com.yilin.tms.core.entity.data.monitor.TmsDataSync;
import com.yilin.tms.core.entity.data.monitor.TmsRootData;
import com.yilin.tms.core.entity.order.transit.TransitOrder;
import com.yilin.tms.core.entity.truck.TruckVehicle;
import com.yilin.tms.core.entity.user.account.Account;

import java.util.List;

public interface ITmsDataService extends IService<TmsRootData> {

    PageData<TmsRootData> getTmsRootPage(TmsRootData tmsRootData, Integer page, Integer limit);

    List<TmsRootData> copyTmsRootData(String platId);

    void syncTmsRootData(String platId,String platName, List<String> ids, TmsDataSync.SyncStatus status);

    void autoSaveVehicleOrder();

    void autoSaveDriverOrder();

    void autoSaveTransitOrder();

    void autoSaveTransitTrailerOrder();

    void autoSaveCapitalFlowOrder();


    void saveTmsCL1001(TruckVehicle truckVehicle);

    void saveTmsJSY1001(Account truckUser);

    void saveTmsYD1001(TransitOrder transitOrder);

    void saveTmsYDGC1001(TransitOrder transitOrder);

    void saveTmsZJ1001(TradeRecord tradeRecord);
}
